package section5_2;

/**
 * Created by Hyman on 2017/6/9.
 *
 * 产品类，保存产品的名称和价格
 */
public class Product {

    /**
     * 名称
     */
    private String name;
    /**
     * 价格
     */
    private double price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
